import java.util.Scanner;

/**
 * Created by dllo on 18/3/31.
 */
public class Test03 {
    public static void main(String[] args) {
        // if 的 第一种形式
        Scanner scanner = new Scanner(System.in);
        while (true) {
            System.out.println("输入一个数:");
            int num = scanner.nextInt();
            if (num > 0) {
                System.out.println("正数");
            } else if (num < 0) {
                System.out.println("负数");
            } else {
                System.out.println("0");
            }
        }
    }
}